
import json
from django.http import JsonResponse
from django.views import View

from constr_budgets.models import Record


class Count(View):
    def get(self,req):
        data = json.loads(req.body)
        day=8.5
        project_id=46
        modules=154
        day_pro_modul=Record.objects.filter(modules=modules,project=project_id,day=day).values()
        print(day_pro_modul)

        return JsonResponse({"code":200,"mesnage":"获取成功"})

